package model.net.handlers
{
	import flash.utils.ByteArray;
	
	import model.net.NetDataType;
	
	import model.system.TraceManager;
	import model.net.AbsDataHandler;

	public class DataTestHandler extends AbsDataHandler
	{
		public function DataTestHandler()
		{
			register(NetDataType.NET_DATA_TEST,handleDataTest);
			register(NetDataType.NET_DATA_TEST1,handleDataTest1);
		}
		
		public function handleDataTest(byteArray:ByteArray):void
		{
			var testStr:String = readString(byteArray);
			TraceManager.getInstance().out("test:",testStr);
		}
		
		public function handleDataTest1(byteArray:ByteArray):void
		{
			var testStr:String = readString(byteArray);
			TraceManager.getInstance().out("test2:",testStr);
		}
	}
}